<template>
  <div>传递过来的内容:{{ content }}</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { useMittOn, mittNameEnum } from '@twa/hooks'
const content = ref()
useMittOn(mittNameEnum.test, (data) => {
  console.log('data', data)
  content.value = data
})
</script>